    var center = [116.4, 39.9];
    var fpUrl = '';
    fpUrl = location.href;
    var fpPram = fpUrl.split('=')[1].split('&')[0];
		var uidPram = fpUrl.split('=')[2].split('&')[0];
    fpUrl = fpUrl.split('?')[0].substr(0,fpUrl.split('?')[0].length-10);    
    console.log(fpPram +',uid:'+uidPram);
    initMap();
    function initMap() {
        map = new LK.Map({
            container: 'map',
            style: '../static/data/lkmap_track.json',
            center: center,
            zoom: 10,
            minZoom:2,
            maxZoom:18,
        });
        map.on("load",function () {
					console.log(0);
            LK.UtilTool.ajax("https://testriab.luokuang.com/footprint/v1/details?fp_id="+fpPram+'&uid='+uidPram,{
                success:function (data) {
                    var trackManager = new LK.TrackManager(map,{
                        trackContentClick:function (contents,trackData) {
                            //location.href = fpUrl+'#/list/'+fpPram;
                        }
                    });
                    trackManager.setTrackData(data.data)
                }
            })
        })
    }	
		/*
	window.onload = function(){
		var clientWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
		var zoomRate = clientWidth/750;
		//top
		var sideBar = document.getElementById("sidebar");
		sideBar.style.bottom = 227 * zoomRate +'px';
		
		sideBar.style.right = 30 * zoomRate +'px';
		var sideTopBar = document.getElementById("top");
		sideTopBar.style.width = 108 * zoomRate + 'px';
		sideTopBar.style.height = 280 * zoomRate + 'px';
		sideTopBar.getElementsByTagName('img')[0].style.paddingTop = 22 * zoomRate +'px';
		sideTopBar.getElementsByTagName('img')[1].style.paddingTop = 22 * zoomRate +'px';
		//user
		var sideUser = document.getElementById("user");
		sideUser.style.width = sideUser.style.height =108 * zoomRate + 'px';
		sideUser.style.marginTop = 20 * zoomRate + 'px';
		sideUser.style.marginBottom = 27 * zoomRate + 'px';
		var addBtn = document.getElementById("addbtn");
		addBtn.style.width = addBtn.style.height = 44*zoomRate + 'px';
		addBtn.style.bottom = -(44*zoomRate)/2 + 'px'
		//bottom
		var sideBottomBar = document.getElementById("bottom");
		sideBottomBar.style.width = 108 * zoomRate + 'px';
		sideBottomBar.style.height = 406 * zoomRate + 'px';
		sideBottomBar.getElementsByTagName('img')[0].style.paddingTop = 22 * zoomRate +'px';
		sideBottomBar.getElementsByTagName('img')[1].style.paddingTop = 22 * zoomRate +'px';
		sideBottomBar.getElementsByTagName('img')[2].style.paddingTop = 22 * zoomRate +'px';
		var spanObj = sideBar.getElementsByTagName('span');
		for(var i=0;i<spanObj.length;i++){
			sideBar.getElementsByTagName('span')[i].style.fontSize = 26 * zoomRate +'px';
		}
		//footerbar
		var footerBar = document.getElementById("footerbar");
		footerBar.style.height = 108 * zoomRate +'px';
		var oFooterBar = footerBar.getElementsByTagName('p')[0];
		var iFooterBar = footerBar.getElementsByTagName('img')[0];
		oFooterBar.style.fontSize = 30 * zoomRate +'px';
		oFooterBar.style.width = 130 * zoomRate +'px';
		oFooterBar.style.height = 60 * zoomRate +'px';
		oFooterBar.style.marginTop = 24 * zoomRate +'px';
		oFooterBar.style.marginRight = 30 * zoomRate +'px';
		iFooterBar.style.width = 336 * zoomRate +'px';
		iFooterBar.style.heiht = 80 * zoomRate +'px';
		iFooterBar.style.marginTop = 14 * zoomRate +'px';
		iFooterBar.style.marginLeft = 30 * zoomRate +'px';
	
	}
	*/
// 	document.getElementById("sidebar").onclick = function(){
// 		//do something
// 	}